package com.example.mac.yuejian14;

import rx.Observable;

/**
 * Created by mac on 2018/9/26.
 */

public class UserModel {
    private static UserModel userModel=null;
    public  static UserModel getIns(){
        if (userModel==null){
            userModel=new UserModel();
        }
        return userModel;
    }
<<<<<<< HEAD
    public Observable<com.example.mac.yuejian14.bean.UserResponse> login(String username, String password){
      return   MyApiFactory.getIns().getService().login(username,password);
    }
    public Observable<com.example.mac.yuejian14.bean.UserResponse> register(String username, String password){
=======
    public Observable<UserResponse> login(String username, String password){
      return   MyApiFactory.getIns().getService().login(username,password);
    }
    public  Observable<UserResponse>register(String username, String password){
>>>>>>> 4629567011ce192c56b08540254859f8a556460d
        return MyApiFactory.getIns().getService().register(username,password);
    }
}
